package com.sjzd.discoveryclient.eureka;

import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @author ZFQ
 * @date 2022/2/16
 */
@Component
public class RemoteServiceFallbackFactory implements FallbackFactory<RemoteServiceFallback> {
    @Override
    public RemoteServiceFallback create(Throwable cause) {
        cause.printStackTrace();
        return new RemoteServiceFallback();
    }
}
